Passed
Pull Request — master (#17)
by
unknown
57s
created

main.spec.js ➔ ... ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
/* eslint func-names: 0 */
2
3
const chai = require('chai');
4
5
const expect = chai.expect;
6
const path = require('path');
7
const shell = require('shelljs');
8
9
chai.use(require('chai-fs-latest'));
10
11
describe('General', () => {
12
  const projectRoot = path.resolve(__dirname, '..', '..');
13
14
  before(() => {
15
    shell.cd(projectRoot);
16
  });
17
18
  describe('build (requires project clean for valid testing)', function () {
19
    this.timeout(30000);
20
21
    it('should create a build directory at the project root', () => {
22
      shell.exec('npm run build --silent', {
23
        silent: true,
24
      });
25
26
      expect(path.join(projectRoot, 'build')).to.be.a.directory();
27
    });
28
  });
29
});
30